package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.goods.entity.goods.GoodsPropertiesValues;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品属性值 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface GoodsPropertiesValuesService extends IService<GoodsPropertiesValues> {

    GoodsPropertiesValues getById(Long id);

    boolean save(GoodsPropertiesValues entity);

    boolean updateById(GoodsPropertiesValues entity);

    IPage getPage(IPage page, Wrapper queryWrapper, String key);

    boolean deleteById(Long id);

    List<GoodsPropertiesValues> getByIds(List<Long> ids, String key);

    /**
     *  根据属性id，查询该属性id下的所有属性值
     */
    Object getValuesByPropertiesId(Long propertiesId, int inputType);
}
